<template>
	<view class="container">
		<!-- 驳回原因 -->
		<u-gap height="30" bg-color="#f8f8f8"></u-gap>
		<view class="common-msg-title">
			<image src="@/static/img/common/line.png" alt="" class="img"></image>
			<text>课程名称</text>
		</view>
		<view class="">
			{{detail.title}}
		</view>
		<u-gap height="30" bg-color="#f8f8f8"></u-gap>
		<view class="common-msg-title">
			<image src="@/static/img/common/line.png" alt="" class="img"></image>
			<text>驳回原因</text>
		</view>
		<view class="">
			{{detail.remarks}}
		</view>
	</view>
</template>

<script>
	import {
		API
	} from '@/config/myApi.js';
	export default {
		data() {
			return {
				detail: {}
			}
		},
		onLoad({
			title,
			id
		}) {
			API.getResultByInformationId(id).then(res => {
				if (res.code === 200) {
					this.detail = Object.assign({},res.result,{title})
				} else {
					uni.showToast({
						title: res.message,
						icon: "none"
					})
				}
			})
		},
		methods: {

		}
	}
</script>

<style lang="scss" scoped>
.common-msg-title {
			display: flex;
			align-items: center;
			margin-bottom: 20rpx;

			>.img {
				width: 5rpx;
				height: 28rpx;
			}

			>text {
				font-size: 30rpx;
				font-weight: bold;
				color: #333333;
				margin-left: 10rpx;
			}
		}
</style>
